package com.chainyoung.component_tmperson.ui.mvp.contract;

import com.chainyoung.common.appcommon.entity.CommonList;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.component_tmperson.entity.CoinItem;
import com.chainyoung.component_tmperson.entity.PurseAddrItem;

import java.util.List;
import java.util.TreeMap;

import io.reactivex.Flowable;

public interface GetPurseListContract {


    interface View extends IView {

        void onGetPurseListSuccess(CommonList<PurseAddrItem> data);

        void onGetPurseListFailed();

        void onDelPurseAddrSuccessed();

    }

    interface Model extends IModel {

        Flowable<CommonList<PurseAddrItem>> getPurseList(TreeMap<String, Object> map);

        Flowable<String> delPurseAddr(TreeMap<String, Object> map);

    }

}
